$(function () {

    $("#ul").children("li").on("mouseenter", function () {

        $(this).css("background", "#003b87").siblings().css("background", "");
    })
    $("#ul").children("li").on("mouseleave", function () {
        $(this).css("background", "")
    })


    $("#button").on("mouseenter", function () {
        $(this).css("opacity", 0.7)
    })
    $("#button").on("mouseleave", function () {
        $(this).css("opacity", 1)
    })
    $("#ulRight").children("li").eq(2).children("p").children("a").css("color", "skyblue");
    $("#ulRight").children("li").eq(3).children("p").children("a").css("color", "skyblue");


    $("#ul").children("li").eq(1).on("mouseenter",function(){
        $(this).css("background", "#003b87")
    })
    $("#ul").children("li").eq(1).on("mouseleave",function(){
        $(this).css("background", "#000000")
    })

    

    $("#topRightUl").on("mouseenter", function () {
        $(this).css("background", "#003b87")
        $("#List").stop().slideDown();

    })
    $("#topRightUl").on("mouseleave", function () {
        $(this).css("background", "")
        $("#List").stop().slideUp();
    })

    $("#List").children("li").children("a").children("span").on("mouseenter", function () {
        $(this).css("color", "orange").parent().parent()
            .siblings().children("a").children("span").css("color", "#333")
    })
    $("#List").children("li").children("a").children("span").on("mouseleave",function(){
        $(this).css("color", "#333")
    })

    //

    $(".yiguiList .button").on("mouseenter",function(){
     
        $(this).siblings("p").eq(0).css("border-bottom","1px solid #000")
    })
    $(".yiguiList .button").on("mouseleave",function(){
     
        $(this).siblings("p").eq(0).css("border",0)
    })

    $(".sofaList .button").on("mouseenter",function(){
     
        $(this).siblings("p").eq(0).css("border-bottom","1px solid #000")
    })
    $(".sofaList .button").on("mouseleave",function(){
     
        $(this).siblings("p").eq(0).css("border",0)
    })


})